package com.ruoyi.consumption.service;

import java.util.List;
import com.ruoyi.consumption.domain.Consumption;
import com.ruoyi.consumption.dto.ConsumptionDto;

/**
 * 能耗Service接口
 * 
 * @author hcc
 * @date 2024-11-25
 */
public interface IConsumptionService 
{
    /**
     * 查询能耗
     * 
     * @param consumptionId 能耗主键
     * @return 能耗
     */
    public Consumption selectConsumptionByConsumptionId(String consumptionId);

    /**
     * 查询能耗列表
     * 
     * @param consumption 能耗
     * @return 能耗集合
     */
    public List<Consumption> selectConsumptionList(Consumption consumption);

    /**
     * 新增能耗
     * 
     * @param consumption 能耗
     * @return 结果
     */
    public int insertConsumption(Consumption consumption);

    /**
     * 修改能耗
     * 
     * @param consumption 能耗
     * @return 结果
     */
    public int updateConsumption(Consumption consumption);

    /**
     * 批量删除能耗
     * 
     * @param consumptionIds 需要删除的能耗主键集合
     * @return 结果
     */
    public int deleteConsumptionByConsumptionIds(String[] consumptionIds);

    /**
     * 删除能耗信息
     * 
     * @param consumptionId 能耗主键
     * @return 结果
     */
    public int deleteConsumptionByConsumptionId(String consumptionId);

    ConsumptionDto getData();
}
